<div class="span10">
	<?=$system_message;?>
	<div class="well">
	<fieldset>
	<legend>Add Time Shifts</legend>
	<form class="form-horizontal" action="<?=site_url('shifts/add');?>" method="POST">
		<div class="control-group">
			<label class="control-label" for="inputEmail">Time In:</label>
			<div class="controls">
			<div class="input-append bootstrap-timepicker">
					<input type="text" name="timein" value="<?=set_value('timein');?>" class="timepicker_with_meridian" input-small">
					<span class="add-on"><i class="icon-time"></i></span>
				</div>
			</div>
		</div>
		<div class="control-group">
			<label class="control-label" for="inputEmail">Time Out:</label>
			<div class="controls">
			<div class="input-append bootstrap-timepicker">
					<input type="text" name="timeout" value="<?=set_value('timeout');?>" class="timepicker_with_meridian" input-small">
					<span class="add-on"><i class="icon-time"></i></span>
				</div>
			</div>
		</div>
		<div class="control-group">
			<div class="controls">
				<input type="submit" name="new_time_shifts" class="btn btn-mini btn-primary" value="Add Time Shift">
			</div>
		</div>
	</form>
	</fieldset>
	</div>
	
	<div class="well">
	<fieldset>
		<legend>Assigned Shifts</legend>
		<table class="table table-bordered table-striped">
			<thead>
				<th>Time</th>
				<th></th>
			</thead>
			<tbody>
				<?if(!empty($shifts)):?>
					<?foreach($shifts as $s):?>
						<tr>
							<td><?=$s->shift_in.' - '.$s->shift_out;?></td>
							<td><a href="" data-confirm="Are you sure you want to delete?" class="btn btn-mini btn-warning">X</a></td>
						</tr>
					<?endforeach;?>
				<?else:?>
					<tr>
						<td colspan="2" class="alert">No Shifts Assigned Yet</td>
					</tr>
				<?endif;?>
			</tbody>
		</table>
	</fieldset>
</div>
</div>
